package com.lottery.material.entity.report;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：举报记录表
 * Created by 朱正磊 on 2019-04-09 10:34
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_report_record")
public class ReportRecord extends BaseEntity {

    private static final long serialVersionUID = -3747058433117455473L;

    @Column(columnDefinition = "int(1) comment '举报范围（1：用户；2：文章；3：评论）'")
    private Integer reportScope;

    @Column(columnDefinition = "varchar(10) comment '举报编号（material_report_type_dict表report_code）'")
    private String reportCode;

    @Column(columnDefinition = "varchar(250) comment '举报内容（自定义内容）'")
    private String reportContent;

    @Column(columnDefinition = "varchar(50) comment '举报用户id'")
    private String reportUserId;

    @Column(columnDefinition = "varchar(50) comment '被举报用户id（用户id/文章id/评论id）'")
    private String beReportObjectId;

    @Column(columnDefinition = "int(1) default '1' comment '处理结果（1：待审核；2：驳回；3：审核通过）'")
    private Integer resultCode;

    @Column(columnDefinition = "varchar(100) comment '处理理由'")
    private String reason;

}
